<template>
	<view class="dis-flex center justify-center column" :style="{height:height}">
		<image class="img-200-200" :src="setSrc" mode="scaleToFill"></image>
		<view class="fs-24 se-thin-txt ta-c">{{tips}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: 'empty'
			},
			height:{
				type:String,
				default:'100%'
			},
			tips:{
				type:String,
				default:'暂无数据'
			}
		},

		data() {
			return {
				typeSrc: {
					empty: ''
				},
			}
		},

		computed: {
			setSrc() {
				return this.typeSrc[this.src];
			},
		}
	}
</script>

<style lang="scss">
	.empty-content {
		height:100%;
	}
</style>
